package qqqq;

public class Qt {	
	public static void main(String[] args) {
		int arr[] = {12,16,58,19,20};
		jjdd(arr);
		
	}
	public static void jjdd(int arr[]) {
		int b=arr.length/2;
		for (int i = 0; i < arr.length/2; i++) {
			int a=arr[i];
			arr[i]=arr[arr.length-1-i];
			arr[arr.length-1-i]=a;
		}
		System.out.print("[");
		for (int i = 0; i < arr.length; i++) {
			if (i==arr.length-1) {
				System.out.println(arr[i]+"]");
			}
			else {
				System.out.print(arr[i]+",");
			}
		}
	}
}
